:root {
  --sidebar-px: 2rem;
  --sidebar-py: 0.8rem;
  --sidebar-width-collapsed: 4.2rem;

  --sidebar-bg: white;
  --sidebar-border-clr: #eee;

  --menu-label-clr: var(--grey);
  --menu-label-border-clr: #eee;

  --menu-clr: var(--blue);
  --menu-bg-hover: var(--lt-blue);
  --menu-clr-hover: white;
  --menu-bg-active: var(--blue);
  --menu-clr-active: white;

  --submenu-bg: var(--lt-grey);
  --submenu-bg-hover: #ddd;
  --submenu-clr-hover: var(--blue);
  --submenu-bg-active: #ddd;
  --submenu-clor-active: var(--dk-grey);

  --mobile-menu-bg: white;
  --mobile-menu-border-clr: #eee;

  --footer-bg: var(--dk-grey);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

body,
body * {
  font-family: "Trade Gothic Condensed", Arial, sans-serif;
  letter-spacing: 0.03rem;
  box-sizing: border-box;
}

#Body,
#overlay {
  height: 100%;
  background-color: #fff;
  margin: 0;
}

body.disable-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: var(--dk-grey);
}

.dark-theme-text :is(h1, h2, h3, h4, h5, h6, p) {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.cta {
  font-family: "Trade Gothic Condensed", "Arial Narrow", Arial, sans-serif;
  margin-top: 0;
}

h1,
h2,
h3,
h5,
h6,
p {
  font-weight: 500;
  line-height: normal;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-weight: bold;
  font-size: 2.1rem;
}

h3,
th {
  font-size: 1.3rem;
  font-weight: bold;
}

h4 {
    line-height: normal;
}

h4,
a,
dt,
th {
  font-weight: 900;
}

h6 {
  font-size: 1.1rem;
  margin-block-start: 0;
}

h4,
h5,
p,
li,
dt,
dd,
td,
blockquote {
  font-size: 1.3rem;
}

p,
blockquote {
  margin-bottom: 15px;
  line-height: 2.5rem;
}

a {
    text-decoration: none;
}

a:not(.cta),
button {
  color: var(--blue);
}

a:not(.cta):focus,
a:not(.cta):hover,
button:hover,
button:focus {
  color: var(--dk-blue);
  text-decoration: none;
}

button,
button:hover,
button:focus {
  background-color: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
}
blockquote {
  color: inherit;
  border-left: 2px solid var(--dk-blue);
  padding: 0rem 1.2rem;
}
blockquote p {
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 2.4rem;
}

cite {
  font-size: 1.1rem;
}

iframe {
  border: none;
}

@media screen and (max-width: 767px) {
  p {
    font-size: 1.2rem;
    line-height: 2.3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* TABLES */
table {
  max-width: 700px;
  margin: auto;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: inherit;
}

th,
td {
  text-align: inherit;
  vertical-align: top;
  padding: 1rem 2rem;
}

td {
  border-top: 1px solid var(--dk-grey);
}

.bg-dark td {
  border-top: 1px solid #eee;
}

td > * {
  margin: 0;
}

.DNNEmptyPane {
  width: auto;
}

#sidebar-layout {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-areas: "navigation content";
  grid-template-columns: auto 1fr;
}

#Content {
  grid-area: content;
  overflow-x: hidden;
}

/* Sidebar */

#sidebar-nav {
  grid-area: navigation;
  border-right: 2px solid var(--sidebar-border-clr);
  position: sticky;
  position: -webkit-sticky;
  height: 100vh;
  width: 20rem;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  background-color: var(--sidebar-bg);
  transition: width 350ms ease;
}

#sidebar-content {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  overflow-y: auto;
  height: 100%;
}

#sidebar-head {
  width: 100%;
  padding: 0 var(--sidebar-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo-link {
  width: 100%;
  max-width: 150px;
}

#logo-link #dnn_imgLogo {
  width: 150px;
}

#sidebar-nav #collapsed-logo {
  display: none;
  width: 100%;
  max-width: 33.2px;
}

#btn-expand-collapse {
  width: 1.1rem;
  background-color: var(--lt-grey);
  padding: 0.5rem;
  box-sizing: content-box;
  border-radius: 10px;
}

#btn-expand-collapse img {
  filter: invert(1) brightness(0.35);
}

#btn-expand-collapse #open-image {
  transform: rotate(180deg);
}

#btn-expand-collapse #closed-image {
  display: none;
}

#sidebar-nav h4 {
  margin: 3rem 2rem 0;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  color: var(--menu-label-clr);
  border-bottom: 2px solid var(--menu-label-border-clr);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

#sidebar-nav ul {
  margin-left: 0;
  margin-top: 0;
  padding-left: 0;
  list-style: none;
  width: 100%;
}

#menu {
  margin-top: 2rem;
  padding-top: 2rem;
}

#sidebar-nav #menu ul:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

#menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--menu-clr);
  font-size: 1.1rem;
  font-weight: normal;
  padding: var(--sidebar-py) var(--sidebar-px);
}

#menu a:hover,
#menu a:focus,
#menu a.active,
#menu > ul:first-child > li > a {
  font-weight: bold;
}

#menu > ul > li > a {
  justify-content: start;
  padding-block: 0.4rem;
}

#menu > ul > li > a img {
  height: 2.2rem;
  margin-right: 0.6rem;
  width: auto;
}

#menu > ul > li > a:hover,
#menu > ul > li > a:focus {
  background-color: var(--menu-bg-hover);
  color: var(--menu-clr-hover);
}
#menu > ul > li > a.active {
  background-color: var(--menu-bg-active);
  color: var(--menu-clr-active);
}

#menu > ul > li > a:hover img,
#menu > ul > li > a:focus img,
#menu > ul > li > a.active img {
  filter: brightness(0) invert(1);
}

#menu .submenu a {
  padding-left: calc(var(--sidebar-px) + 3.4rem);
}

#menu .submenu a:hover,
#menu .submenu a:focus {
  background-color: var(--submenu-bg-hover);
  color: var(--submenu-clr-hover);
}

#sidebar-nav .submenu a.active {
  background-color: var(--submenu-bg-active);
  color: var(--submenu-clor-active);
}

.submenu a.active::after {
  content: url(/portals/0/library/icons/arrow-right/arrow-right-black.svg);
  width: 1.2rem;
}

#sidebar-nav .submenu {
  background-color: var(--submenu-bg);
  display: none;
}
#sidebar-nav .active ~ .submenu {
  display: block;
}

@media screen and (min-width: 746px) {
  /* Collapsed Sidebar */
  #sidebar-nav.collapsed {
    width: var(--sidebar-width-collapsed);
  }

  #sidebar-nav.collapsed #sidebar-head {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: start;
  }

  #sidebar-nav.collapsed #btn-expand-collapse #open-image {
    display: none;
  }

  #sidebar-nav.collapsed #btn-expand-collapse #closed-image {
    display: block;
  }

  #sidebar-nav.collapsed #logo-link {
    padding-bottom: 1.4rem;
  }

  #sidebar-nav.collapsed #dnn_imgLogo {
    display: none;
  }

  #sidebar-nav.collapsed #collapsed-logo {
    display: block;
  }

  #sidebar-nav.collapsed h4 {
    display: none;
  }

  #sidebar-nav.collapsed #menu {
    margin-top: 0;
  }

  #sidebar-nav.collapsed #menu ul {
    padding-bottom: 1rem;
  }

  #sidebar-nav.collapsed #menu a {
    flex-direction: column;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.4rem 0.8rem;
    align-items: start;
  }

  #sidebar-nav.collapsed #menu a img {
    margin-right: 0;
  }

  #sidebar-nav.collapsed #menu a span {
    position: absolute;
    left: calc(var(--sidebar-width-collapsed) - 1rem);
    opacity: 0;
    background-color: rgb(40 40 40 / 90%);
    padding: 10px 1rem;
    border-radius: 10px;
    width: max-content;
  }

  #sidebar-nav.collapsed #menu a:hover span,
  #sidebar-nav.collapsed #menu a:focus span {
    opacity: 1;
    left: calc(var(--sidebar-width-collapsed) + 0.3rem);
    transition: all 250ms ease;
  }

  #sidebar-nav.collapsed .submenu {
    display: none;
  }
  #mobile-menu {
    display: none;
  }
}
@media screen and (max-width: 1024px) and (min-width: 746px) {
  #sidebar-layout {
    grid-template-columns: 4.2rem 1fr;
  }
  #sidebar-nav:not(.collapsed) {
    position: fixed;
  }
}
@media screen and (max-width: 746px) {
  #mobile-menu {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--mobile-menu-bg);
    border-top: 2px solid var(--mobile-menu-border-clr);
    padding: 1rem;
    height: 5rem;
    z-index: 1;
  }
  #mobile-menu > a {
    padding: 0;
    max-height: 5rem;
  }
  #mobile-menu > a img {
    max-height: 3rem;
  }
  #toggle-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: all 250ms ease;
  }
  #toggle-nav::after {
    content: url("https://www.cpcworldwide.com/portals/0/library/Icons/icon-close/icon-close-black-thin.svg");
    content: url("https://www.cpcworldwide.com/portals/0/library/Icons/menu-hamburger/menu-hamburger-black.svg");
    width: 2rem;
    height: 1.4rem;
  }
  #toggle-nav.open {
    width: auto;
    z-index: 11;
  }
  #toggle-nav.open::after {
    content: url("https://www.cpcworldwide.com/portals/0/library/Icons/icon-close/icon-close-black-thin.svg");
    height: auto;
    width: 2rem;
  }
  #sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 5rem;
    z-index: 10;
    transform: translateX(0);
    transition: all 250ms ease;
    height: auto;
    box-sizing: border-box;
  }
  #sidebar-nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2rem;
    background-image: linear-gradient(
      90deg,
      rgb(255 255 255),
      rgb(255 255 255 0)
    );
  }

  #sidebar-nav:not(.open) {
    transform: translateX(calc(-100%));
  }
  #sidebar-nav #sidebar-head {
    display: none;
  }
  #sidebar-nav .submenu {
    display: none !important;
  }
}
footer {
  display: flex;
  align-items: center;
  justify-content: end;
  height: 4rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: var(--footer-bg);
  color: white;
}
footer small {
  font-size: 1rem;
  font-weight: bold;
}
.cpc-container {
  overflow: auto;
}
.cpc-content {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-inline: 2rem;
}

.two-column.img img {
  width: 100%;
  height: 20rem;
  object-fit: contain;
  border: 2px solid #ddd;
}
.two-column.img {
  column-gap: 1rem;
}
.two-column.img:not(:last-child) {
  padding-bottom: 3rem;
}

@media screen and (max-width: 767px) {
  .two-column div:nth-child(2) {
      margin-left: 0;
  }
}

/* BREADCRUMB */
.breadcrumb {
  display: inline-block !important;
  padding: 0 !important;
}
.breadcrumb a {
  display: block;
  color: var(--lt-blue) !important;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}
.breadcrumb a:hover,
.breadcrumb a:focus {
color: var(--dk-blue) !important;
border-bottom: none !important;
}


/* DARK THEME STYLING */
[data-darkTheme] {
  background-color: #111111 !important;
  color: white;

  --sidebar-bg: #111111;
  --sidebar-border-clr:var(--dk-grey);

  --menu-label-clr: white;
  --menu-label-border-clr: white;

  --menu-clr: #a1ccf2;

  --submenu-bg: #1f1f1f;
  --submenu-bg-hover: #333;
  --submenu-clr-hover: #a1ccf2;
  --submenu-bg-active: #333;
  --submenu-clor-active: white;

  --mobile-menu-bg: var(--dk-grey);
  --mobile-menu-border-clr: var(--grey);

  --footer-bg: #111111;
}

[data-darktheme] .bg-light,
[data-darktheme] .bg-lt-blue {
  background-color: unset;
}

[data-darktheme] .CPC-WireframeDivider-cmpnt {
  filter: grayscale(1) invert(0.95);
}

[data-darktheme] .breadcrumb {
  background-color: var(--dk-grey);
}

[data-darktheme] .breadcrumb a:hover,
[data-darktheme] .breadcrumb a:focus {
  color: var(--orange) !important;
}

[data-darktheme] #sidebar-nav #logo-link #dnn_imgLogo,
[data-darktheme] #mobile-menu img,
[data-darktheme] #mobile-menu #toggle-nav::after {
  filter: brightness(0) invert(1);
}

[data-darktheme] #sidebar-nav .submenu a.active::after {
  filter: var(--filter-white);
}

/* IMAGE GRID */
.image-grid {
    display: grid;
    gap: 1rem;
}

    .image-grid.three {
        grid-template-columns: repeat(3, 1fr)
    }

    .image-grid img {
        width: 100%;
        height: auto;
        border: 2px solid #eee;
    }